package com.yifeng.po;

import java.util.ArrayList;
import java.util.List;
/**
 * 菜单实体类
 * @author sh
 *
 */

public class Menu {
	private Long id;
	private String title;
	private String icon;
	private String href;
	private String sn;
	private boolean spread;

	public boolean isSpread() {
		return false;
	}

	private String intro;
	//父菜单--自连接 多对一
	private Menu parent;
	//子菜单--自连接 一对多
	private List<Menu> children = new ArrayList();

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public String getHref() {
		return href;
	}

	public void setHref(String href) {
		this.href = href;
	}

	public String getSn() {
		return sn;
	}

	public void setSn(String sn) {
		this.sn = sn;
	}

	public String getIntro() {
		return intro;
	}

	public void setIntro(String intro) {
		this.intro = intro;
	}

	public Menu getParent() {
		return parent;
	}

	public void setParent(Menu parent) {
		this.parent = parent;
	}

	public List<Menu> getChildren() {
		return children;
	}

	public void setChildren(List<Menu> children) {
		this.children = children;
	}


	@Override
	public String toString() {
		return "Menu [id=" + id + ", sn=" + sn + ", title=" + title + ", icon=" + icon + ", href=" + href + ", intro="
				+ intro+"]";
	}


}
